//
//  casusView.m
//  HAODE
//
//  Created by panquanReabam.com on 15/10/15.
//  Copyright (c) 2015年 reabam.com. All rights reserved.
//

#import "casusView.h"

@implementation casusView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
   
        _buttonView = [UIButton buttonWithType:UIButtonTypeCustom];
        _buttonView.frame = CGRectMake(0, 0, self.width, ScreenWidth/2);
        [_buttonView setBackgroundImage:[UIImage imageNamed:@"home.png"] forState:UIControlStateNormal];
        [self addSubview:_buttonView];
        
        UIView *label_backgound = [[UIView alloc]initWithFrame:CGRectMake(0, self.buttonView.bottom, self.width, self.height-self.buttonView.height)];
        [label_backgound setBackgroundColor:[UIColor whiteColor]];
        [self addSubview:label_backgound];
        self.label_name = [[UILabel alloc]initWithFrame:CGRectMake(0, 10 , self.width-10, label_backgound.height/2)];
        self.label_name.textColor = [UIColor blackColor];
//      self.label_name.textAlignment = NSTextAlignmentCenter;
        self.label_name.font = [UIFont systemFontOfSize:15];
        [label_backgound addSubview:self.label_name];
        self.label_name1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 40 , self.width-10, 35)];
        self.label_name1.textColor = shenhuicolor;
        self.label_name1.numberOfLines=2;
// self.label_name.textAlignment = NSTextAlignmentCenter;
        self.label_name1.font = [UIFont systemFontOfSize:14];
        [label_backgound addSubview:self.label_name1];
        
    }
    return self;
}

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect
 {
 // Drawing code
 }
 */

@end
